{include file="header.tpl" title="bao tri ssrpttype "}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18%">
<input type="button" value="{$ten_trove}" onClick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong" size="1" onChange="changevalue('hanhdong');">
 {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<td colspan="7"><hr></td>
</tr>
  <tr>
  	<td colspan="8"><!--<input type="submit" id="getName" name="getName" value="   " style="visibility:hidden;"/> onchange="document.getElementById('getName').click();" --></td>
    </tr>
  
  <tr>
    <td>{$lbl_Type}</td>
    <td><select name="Type" size="1" id="Type" {if $activefield eq 'enabled' }disabled="disabled" {/if}>
        
		{foreach from=$cbo_define_report key=k item=v}
          
      <option value="{$k}" {if $Type eq $k} selected="selected" {/if}>{$k} - {$v}</option>
          
 		{/foreach}		
        
    </select>
	<input id="Typetmp" name="Typetmp" type="hidden" value="{$Type}" />
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="22%">{$lbl_RPTID}&nbsp;&nbsp;</td>
    <td width="42%"><input name="RPTID" type="text" id="RPTID" value="{$RPTID}" size="15" maxlength="4" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" {if $activefield eq 'enabled' } readonly="readonly" {/if}>
      <span style="color:#FF0000;">*</span> <span style="color:#FF0000;">
      <input type="submit" name="find" value="    " id="replacement_find" />
      </span></td>
    <td width="40%">&nbsp;</td>
  </tr>
  
  <tr>
    <td>{$lbl_VNDESC}</td>
    <td colspan="7"><input name="VNDESC" type="text" id="VNDESC" value="{$VNDESC}" size="60" maxlength="50"/></td>
  </tr>
  <tr>
    <td>{$lbl_ENDESC}</td>
    <td colspan="7"><input name="ENDESC" type="text" id="ENDESC" value="{$ENDESC}" size="60" maxlength="50" /> </td>
  </tr>
  <tr>
    <td>{$lbl_EFFTIME}</td>
    <td colspan="7"><input name="EFFTIME" id="EFFTIME" type="text" value="{$EFFTIME}" size="20" maxlength="20" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" readonly="readOnly"/></td>
  </tr>
  <tr>
    <td>{$lbl_EXPTIME}</td>
    <td colspan="7"><input name="EXPTIME" id="EXPTIME" type="text" value="{$EXPTIME}" size="20" maxlength="20" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" readonly="readOnly"/></td>
  </tr>
  <tr>
    <td>{$lbl_EFFDATE}</td>
    <td colspan="7">{$option_EFFDATE}</td>
  </tr>
  <tr>
    <td>{$lbl_EXPDATE}</td>
    <td colspan="7">{$option_EXPDATE}</td>
  </tr>
  <tr>
  	 <td width="18%"><input name="TOTAL" id="TOTAL" type="hidden"/></td>
    <td colspan="7"><span style="color:#FF0000">{$error_hour}{$error_date}</span></td>
    </tr>
<tr>
<td colspan="7">&nbsp;</td>
<tr>
<td colspan="7"></td>
</tr>
<tr>
<td>
<!---<input value="{$lich_su_thay_doi}" name="lichsuthaydoi" id="lichsuthaydoi" type="button" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" onclick="mywindow = window.open('lich_su_par_ssrptquote.php?QGRPCODE={$QGRPCODE}&QSEQNO={$QSEQNO}', 'mywindow','menubar=0,scrollbars=1,resizable=0,width=700,height=300');mywindow.moveTo((screen.width-700)/2,(screen.height-300)/2);" />---></td>
<td colspan="3" align="right" nowrap="nowrap">

   <input type="button" name="cancle" id="cancle" value="{$ten_cancle}" class="button_style" onclick="activeform(this.form,'RPTID-Type');" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
   
   <input type="submit" name="capnhat" value="{$ten_cap_nhat}" {if $activefield eq 'disabled' }disabled="disabled" {/if} class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
  </tr>
<tr>
<td colspan="4" align="left" nowrap="nowrap">
<input name="addnew" type="submit" value="{$ten_themmoi}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
<input name="detail" type="submit" value="{$ten_chitiet}" class="button_style" onclick="" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td >
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap" colspan="3">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{include file="footer.tpl"}
